 <foreach name="list" item="val">
    <li>
           <if condition=" $status eq 2 ">
                <a href="{:U('School/info',array('uid'=>$val['uid']))}" class="item-link item-content">
            <else/>
                <a href="{:U('Appointment/sc_app',array('school_id'=>$val['uid']))}" class="item-link item-content">
            </if>
            <div class="item-media ds-list-img">
                <img src="{$val['head']}">
            </div>
            <div class="item-inner">
                <div class="item-title-row">
                    <div class="item-title">{$val['name']}</div>
                    <div class="item-after">
                        <span class="money">￥{$val['price']}</span>
                    </div>
                </div>
                <div class="item-subtitle">地址：
                    <?php echo mb_substr($val['address'],0,10, 'utf-8'). '...'; ?>
                </div>
                <div class="item-text">详细</div>
            </div>
        </a>
    </li>
</foreach>
<input type="hidden" id="sort" value="{$sort}">
<input type="hidden" id="empty" value="{$empty}">